package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 礼券表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-04-01
 */
@TableName("wz_coupon")
public class WzCoupon extends Model<WzCoupon> {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券id
     */
    @TableId(value = "coupon_id", type = IdType.ID_WORKER)
    private Long couponId;
    /**
     * 一级分类
     */
    @TableField("adv_map_category_first")
    private String advMapCategoryFirst;
    /**
     * 商户名称
     */
    @TableField("merchant_name")
    private String merchantName;
    /**
     * 商户logo
     */
    private String logo;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 周边店铺id
     */
    @TableField("adv_map_id")
    private String advMapId;
    /**
     * 奖品id
     */
    @TableField("prize_id")
    private String prizeId;
    /**
     * 单价
     */
    private Integer price;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 兑换物品图片
     */
    private String pic;
    /**
     * 开始时间
     */
    @TableField("begin_time")
    private Date beginTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 规则
     */
    private String rule;
    /**
     * 类型：1-抽奖券；2-活动券；3-商城券；
     */
    private Integer type;
    /**
     * 子类型：1-优惠券;2-兑换券;
     */
    private Integer subtype;
    /**
     * 规则类型：1-文字；2-图片；
     */
    @TableField("rule_type")
    private Integer ruleType;
    /**
     * 状态：1-审核中；2-审核通过；3-审核驳回；4-发布中；5-过期；
     */
    private Integer status;
    /**
     * 优惠信息
     */
    private String benefit;
    /**
     * 行政编号
     */
    @TableField("ad_code")
    private String adCode;
    /**
     * 驳回理由
     */
    @TableField("reject_remark")
    private String rejectRemark;
    /**
     * 是否送货：0-到店消费；1-送货上门；
     */
    @TableField("use_type")
    private Integer useType;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public String getAdvMapCategoryFirst() {
        return advMapCategoryFirst;
    }

    public void setAdvMapCategoryFirst(String advMapCategoryFirst) {
        this.advMapCategoryFirst = advMapCategoryFirst;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getAdvMapId() {
        return advMapId;
    }

    public void setAdvMapId(String advMapId) {
        this.advMapId = advMapId;
    }

    public String getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(String prizeId) {
        this.prizeId = prizeId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getRuleType() {
        return ruleType;
    }

    public void setRuleType(Integer ruleType) {
        this.ruleType = ruleType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBenefit() {
        return benefit;
    }

    public void setBenefit(String benefit) {
        this.benefit = benefit;
    }

    public String getAdCode() {
        return adCode;
    }

    public void setAdCode(String adCode) {
        this.adCode = adCode;
    }

    public String getRejectRemark() {
        return rejectRemark;
    }

    public void setRejectRemark(String rejectRemark) {
        this.rejectRemark = rejectRemark;
    }

    public Integer getUseType() {
        return useType;
    }

    public void setUseType(Integer useType) {
        this.useType = useType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.couponId;
    }

    @Override
    public String toString() {
        return "WzCoupon{" +
        "couponId=" + couponId +
        ", advMapCategoryFirst=" + advMapCategoryFirst +
        ", merchantName=" + merchantName +
        ", logo=" + logo +
        ", userCode=" + userCode +
        ", advMapId=" + advMapId +
        ", prizeId=" + prizeId +
        ", price=" + price +
        ", stock=" + stock +
        ", pic=" + pic +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", rule=" + rule +
        ", type=" + type +
        ", subtype=" + subtype +
        ", ruleType=" + ruleType +
        ", status=" + status +
        ", benefit=" + benefit +
        ", adCode=" + adCode +
        ", rejectRemark=" + rejectRemark +
        ", useType=" + useType +
        ", createTime=" + createTime +
        "}";
    }
}
